home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / nfs / amd / amd-5.2 / doc / nh.sty < prev    next >
LaTeX Document  |  1990-06-23  |  3.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert DirectMusic Style (music/directMusicStyle) ext Unsupported
1% dexvert Labeler/Labels Unlimited Style (other/labelerStyle) ext Unsupported
1% dexvert LithTech engine sound Style (other/lithTechEngineSoundStyle) ext Unsupported
1% dexvert Microsoft Word Style Sheet (other/microsoftWordStyleSheet) ext Unsupported
1% dexvert Stanford Graphics Style master (other/stanfordGraphicsStyleMaster) ext Unsupported
1% dexvert Beyond Words Composer Style (other/beyondWordsComposerStyle) ext Unsupported
1% dexvert Grand Theft Auto 2 Style data (other/grandTheftAuto2StyleData) ext Unsupported
1% dexvert KORG File (other/korgFile) ext Unsupported
1% dexvert MAGIX music studio Style (other/magixMusicStudioStyle) ext Unsupported
1% dexvert RIO Scene (other/rioScene) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: Plain text[LF] default
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 43 68 61 6e 67 65 | 20 70 61 67 65 20 73 69 |% Change| page si|
|00000010| 7a 65 20 70 61 72 61 6d | 65 74 65 72 73 20 66 6f |ze param|eters fo|
|00000020| 72 20 41 34 20 70 61 70 | 65 72 20 6f 6e 20 4c 61 |r A4 pap|er on La|
|00000030| 73 65 72 57 72 69 74 65 | 72 2c 0a 25 20 61 6c 6c |serWrite|r,.% all|
|00000040| 6f 77 69 6e 67 20 66 6f | 72 20 68 65 61 64 65 72 |owing fo|r header|
|00000050| 73 20 61 6e 64 20 66 6f | 6f 74 65 72 73 2e 20 44 |s and fo|oters. D|
|00000060| 65 66 69 6e 65 20 73 6f | 6d 65 20 6e 65 77 20 6d |efine so|me new m|
|00000070| 61 63 72 6f 73 20 66 6f | 72 20 68 65 61 64 65 72 |acros fo|r header|
|00000080| 73 0a 25 20 61 6e 64 20 | 66 6f 6f 74 65 72 73 20 |s.% and |footers |
|00000090| 74 6f 6f 2e 0a 25 0a 25 | 20 4d 4a 57 20 39 20 4a |too..%.%| MJW 9 J|
|000000a0| 61 6e 20 31 39 38 37 0a | 5c 6f 64 64 73 69 64 65 |an 1987.|\oddside|
|000000b0| 6d 61 72 67 69 6e 20 31 | 36 70 74 20 25 20 4d 4a |margin 1|6pt % MJ|
|000000c0| 57 20 61 63 74 75 61 6c | 6c 79 20 67 65 74 20 31 |W actual|ly get 1|
|000000d0| 2f 32 20 69 6e 63 68 20 | 28 3d 33 32 70 74 29 20 |/2 inch |(=32pt) |
|000000e0| 6d 61 72 67 69 6e 20 62 | 65 63 61 75 73 65 0a 20 |margin b|ecause. |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 25 20 6f 66 20 70 | 72 69 6e 74 65 72 20 6f | % of p|rinter o|
|00000110| 66 66 73 65 74 2e 20 77 | 61 73 20 31 70 74 0a 5c |ffset. w|as 1pt.\|
|00000120| 65 76 65 6e 73 69 64 65 | 6d 61 72 67 69 6e 20 31 |evenside|margin 1|
|00000130| 36 70 74 20 25 20 77 61 | 73 20 31 70 74 0a 5c 6d |6pt % wa|s 1pt.\m|
|00000140| 61 72 67 69 6e 70 61 72 | 77 69 64 74 68 20 33 30 |arginpar|width 30|
|00000150| 70 74 20 25 20 74 68 65 | 73 65 20 67 61 69 6e 20 |pt % the|se gain |
|00000160| 35 33 70 74 20 77 69 64 | 74 68 0a 5c 74 6f 70 6d |53pt wid|th.\topm|
|00000170| 61 72 67 69 6e 20 35 70 | 74 20 20 20 20 20 20 25 |argin 5p|t %|
|00000180| 20 67 61 69 6e 73 20 32 | 36 70 74 20 68 65 69 67 | gains 2|6pt heig|
|00000190| 68 74 20 28 4d 4a 57 20 | 77 61 73 20 31 36 70 74 |ht (MJW |was 16pt|
|000001a0| 29 0a 5c 68 65 61 64 68 | 65 69 67 68 74 20 31 34 |).\headh|eight 14|
|000001b0| 70 74 20 20 20 20 20 20 | 25 20 67 61 69 6e 73 20 |pt |% gains |
|000001c0| 31 31 70 74 20 68 65 69 | 67 68 74 20 28 4d 4a 57 |11pt hei|ght (MJW|
|000001d0| 20 77 61 73 20 31 70 74 | 29 0a 5c 68 65 61 64 73 | was 1pt|).\heads|
|000001e0| 65 70 20 32 35 70 74 20 | 20 20 20 20 20 20 20 20 |ep 25pt | |
|000001f0| 25 20 67 61 69 6e 73 20 | 32 34 70 74 20 68 65 69 |% gains |24pt hei|
|00000200| 67 68 74 20 28 4d 4a 57 | 20 77 61 73 20 31 70 74 |ght (MJW| was 1pt|
|00000210| 29 0a 25 5c 66 6f 6f 74 | 68 65 69 67 68 74 20 31 |).%\foot|height 1|
|00000220| 32 20 70 74 20 20 20 25 | 20 63 61 6e 6e 6f 74 20 |2 pt %| cannot |
|00000230| 62 65 20 63 68 61 6e 67 | 65 64 20 61 73 20 6e 75 |be chang|ed as nu|
|00000240| 6d 62 65 72 20 6d 75 73 | 74 20 66 69 74 0a 5c 66 |mber mus|t fit.\f|
|00000250| 6f 6f 74 73 6b 69 70 20 | 32 34 70 74 20 20 20 20 |ootskip |24pt |
|00000260| 20 20 20 25 20 67 61 69 | 6e 73 20 36 70 74 20 68 | % gai|ns 6pt h|
|00000270| 65 69 67 68 74 0a 5c 74 | 65 78 74 68 65 69 67 68 |eight.\t|extheigh|
|00000280| 74 20 25 20 35 32 38 20 | 2b 20 32 36 20 2b 20 31 |t % 528 |+ 26 + 1|
|00000290| 31 20 2b 20 32 34 20 2b | 20 36 20 2b 20 35 35 20 |1 + 24 +| 6 + 55 |
|000002a0| 66 6f 72 20 6c 75 63 6b | 20 2d 31 36 20 2b 33 32 |for luck| -16 +32|
|000002b0| 20 28 68 65 61 64 73 3a | 20 2d 31 30 20 2d 31 35 | (heads:| -10 -15|
|000002c0| 29 0a 25 20 20 20 20 20 | 20 20 20 20 20 20 36 35 |).% | 65|
|000002d0| 30 70 74 0a 25 20 20 20 | 20 20 20 20 20 20 20 20 |0pt.% | |
|000002e0| 20 36 36 36 70 74 0a 09 | 20 20 20 20 36 34 31 70 | 666pt..| 641p|
|000002f0| 74 0a 5c 74 65 78 74 77 | 69 64 74 68 20 25 20 33 |t.\textw|idth % 3|
|00000300| 36 30 20 2b 20 35 33 20 | 2b 20 34 37 20 66 6f 72 |60 + 53 |+ 47 for|
|00000310| 20 6c 75 63 6b 20 2d 31 | 35 20 2b 38 0a 20 20 20 | luck -1|5 +8. |
|00000320| 20 20 20 20 20 20 20 20 | 34 35 33 70 74 0a 25 5c | |453pt.%\|
|00000330| 70 61 67 65 73 74 79 6c | 65 7b 6d 79 68 65 61 64 |pagestyl|e{myhead|
|00000340| 69 6e 67 73 7d 0a 25 5c | 6d 61 72 6b 62 6f 74 68 |ings}.%\|markboth|
|00000350| 7b 4c 45 46 54 7d 7b 52 | 49 47 48 54 7d 0a 25 6c |{LEFT}{R|IGHT}.%l|
|00000360| 65 66 74 20 3d 20 65 76 | 65 6e 2c 20 72 69 67 68 |eft = ev|en, righ|
|00000370| 74 20 3d 20 6f 64 64 20 | 66 6f 72 20 74 77 6f 2d |t = odd |for two-|
|00000380| 73 69 64 65 64 0a 25 20 | 65 76 65 72 79 74 68 69 |sided.% |everythi|
|00000390| 6e 67 20 69 73 20 72 69 | 67 68 74 20 66 6f 72 20 |ng is ri|ght for |
|000003a0| 6f 6e 65 2d 73 69 64 65 | 64 0a 5c 64 65 66 5c 65 |one-side|d.\def\e|
|000003b0| 76 65 6e 68 65 61 64 6c | 69 6e 65 7b 7d 5c 64 65 |venheadl|ine{}\de|
|000003c0| 66 5c 6f 64 64 68 65 61 | 64 6c 69 6e 65 7b 7d 0a |f\oddhea|dline{}.|
|000003d0| 5c 64 65 66 5c 65 76 65 | 6e 66 6f 6f 74 6c 69 6e |\def\eve|nfootlin|
|000003e0| 65 7b 7d 5c 64 65 66 5c | 6f 64 64 66 6f 6f 74 6c |e{}\def\|oddfootl|
|000003f0| 69 6e 65 7b 7d 0a 25 20 | 55 73 65 20 74 68 65 73 |ine{}.% |Use thes|
|00000400| 65 20 74 6f 20 73 65 74 | 20 68 65 61 64 65 72 73 |e to set| headers|
|00000410| 20 61 6e 64 20 66 6f 6f | 74 65 72 73 20 66 6f 72 | and foo|ters for|
|00000420| 20 74 77 6f 2d 73 69 64 | 65 64 20 70 72 69 6e 74 | two-sid|ed print|
|00000430| 69 6e 67 2e 0a 5c 64 65 | 66 5c 73 65 74 62 6f 74 |ing..\de|f\setbot|
|00000440| 68 68 65 61 64 65 72 73 | 23 31 23 32 7b 5c 64 65 |hheaders|#1#2{\de|
|00000450| 66 5c 65 76 65 6e 68 65 | 61 64 6c 69 6e 65 7b 23 |f\evenhe|adline{#|
|00000460| 31 7d 5c 64 65 66 5c 6f | 64 64 68 65 61 64 6c 69 |1}\def\o|ddheadli|
|00000470| 6e 65 7b 23 32 7d 7d 0a | 5c 64 65 66 5c 73 65 74 |ne{#2}}.|\def\set|
|00000480| 62 6f 74 68 66 6f 6f 74 | 65 72 73 23 31 23 32 7b |bothfoot|ers#1#2{|
|00000490| 5c 64 65 66 5c 65 76 65 | 6e 66 6f 6f 74 6c 69 6e |\def\eve|nfootlin|
|000004a0| 65 7b 23 31 7d 5c 64 65 | 66 5c 6f 64 64 66 6f 6f |e{#1}\de|f\oddfoo|
|000004b0| 74 6c 69 6e 65 7b 23 32 | 7d 7d 0a 25 20 55 73 65 |tline{#2|}}.% Use|
|000004c0| 20 74 68 65 73 65 20 66 | 6f 72 20 6f 6e 65 2d 73 | these f|or one-s|
|000004d0| 69 64 65 64 20 70 72 69 | 6e 74 69 6e 67 2e 0a 5c |ided pri|nting..\|
|000004e0| 64 65 66 5c 73 65 74 68 | 65 61 64 65 72 23 31 7b |def\seth|eader#1{|
|000004f0| 5c 64 65 66 5c 6f 64 64 | 68 65 61 64 6c 69 6e 65 |\def\odd|headline|
|00000500| 7b 23 31 7d 7d 5c 64 65 | 66 5c 73 65 74 66 6f 6f |{#1}}\de|f\setfoo|
|00000510| 74 65 72 23 31 7b 5c 64 | 65 66 5c 6f 64 64 66 6f |ter#1{\d|ef\oddfo|
|00000520| 6f 74 6c 69 6e 65 7b 23 | 31 7d 7d 0a 25 20 54 6f |otline{#|1}}.% To|
|00000530| 20 73 65 74 20 66 6f 6f | 74 65 72 20 6f 6e 20 66 | set foo|ter on f|
|00000540| 69 72 73 74 20 70 61 67 | 65 20 6f 66 20 61 20 63 |irst pag|e of a c|
|00000550| 68 61 70 74 65 72 0a 5c | 64 65 66 5c 73 65 74 63 |hapter.\|def\setc|
|00000560| 68 61 70 74 65 72 66 6f | 6f 74 23 31 7b 5c 64 65 |hapterfo|ot#1{\de|
|00000570| 66 5c 63 68 61 70 74 65 | 72 66 6f 6f 74 7b 23 31 |f\chapte|rfoot{#1|
|00000580| 7d 7d 0a 5c 64 65 66 5c | 73 65 74 63 68 61 70 74 |}}.\def\|setchapt|
|00000590| 65 72 68 65 61 64 23 31 | 7b 5c 64 65 66 5c 63 68 |erhead#1|{\def\ch|
|000005a0| 61 70 74 65 72 68 65 61 | 64 7b 23 31 7d 7d 0a 25 |apterhea|d{#1}}.%|
|000005b0| 20 49 6e 69 74 69 61 6c | 69 73 65 20 66 6f 6f 74 | Initial|ise foot|
|000005c0| 65 72 73 20 74 6f 20 74 | 68 65 20 70 61 67 65 20 |ers to t|he page |
|000005d0| 6e 75 6d 62 65 72 2e 0a | 5c 73 65 74 62 6f 74 68 |number..|\setboth|
|000005e0| 66 6f 6f 74 65 72 73 7b | 5c 68 66 69 6c 5c 74 68 |footers{|\hfil\th|
|000005f0| 65 70 61 67 65 5c 68 66 | 69 6c 7d 7b 5c 68 66 69 |epage\hf|il}{\hfi|
|00000600| 6c 5c 74 68 65 70 61 67 | 65 5c 68 66 69 6c 7d 0a |l\thepag|e\hfil}.|
|00000610| 25 20 49 6e 69 74 69 61 | 6c 69 73 65 20 63 68 61 |% Initia|lise cha|
|00000620| 70 74 65 72 20 66 6f 6f | 74 65 72 20 74 6f 20 70 |pter foo|ter to p|
|00000630| 61 67 65 20 6e 75 6d 62 | 65 72 2c 20 68 65 61 64 |age numb|er, head|
|00000640| 65 72 20 65 6d 70 74 79 | 2e 0a 5c 73 65 74 63 68 |er empty|..\setch|
|00000650| 61 70 74 65 72 66 6f 6f | 74 7b 5c 68 66 69 6c 5c |apterfoo|t{\hfil\|
|00000660| 74 68 65 70 61 67 65 20 | 5c 68 66 69 6c 7d 0a 5c |thepage |\hfil}.\|
|00000670| 73 65 74 63 68 61 70 74 | 65 72 68 65 61 64 7b 7d |setchapt|erhead{}|
|00000680| 0a 25 20 4d 79 20 76 65 | 72 73 69 6f 6e 20 6f 66 |.% My ve|rsion of|
|00000690| 20 5c 63 68 61 70 74 65 | 72 0a 5c 64 65 66 5c 63 | \chapte|r.\def\c|
|000006a0| 68 61 70 74 65 72 7b 5c | 63 6c 65 61 72 70 61 67 |hapter{\|clearpag|
|000006b0| 65 20 20 20 20 20 20 25 | 20 53 74 61 72 74 73 20 |e %| Starts |
|000006c0| 6e 65 77 20 70 61 67 65 | 2e 0a 25 20 20 5c 69 66 |new page|..% \if|
|000006d0| 40 74 77 6f 73 69 64 65 | 20 5c 63 6c 65 61 72 64 |@twoside| \cleard|
|000006e0| 6f 75 62 6c 65 70 61 67 | 65 0a 25 20 20 5c 65 6c |oublepag|e.% \el|
|000006f0| 73 65 5c 63 6c 65 61 72 | 70 61 67 65 5c 66 69 20 |se\clear|page\fi |
|00000700| 20 20 20 20 20 20 20 25 | 20 53 74 61 72 74 73 20 | %| Starts |
|00000710| 6e 65 77 20 70 61 67 65 | 2e 0a 20 20 20 5c 74 68 |new page|.. \th|
|00000720| 69 73 70 61 67 65 73 74 | 79 6c 65 7b 63 68 61 70 |ispagest|yle{chap|
|00000730| 74 65 72 70 61 67 65 7d | 20 20 20 20 20 25 20 50 |terpage}| % P|
|00000740| 61 67 65 20 73 74 79 6c | 65 20 6f 66 20 63 68 61 |age styl|e of cha|
|00000750| 70 74 65 72 20 70 61 67 | 65 20 69 73 20 27 63 68 |pter pag|e is 'ch|
|00000760| 61 70 74 65 72 70 61 67 | 65 27 0a 20 20 20 5c 67 |apterpag|e'. \g|
|00000770| 6c 6f 62 61 6c 5c 40 74 | 6f 70 6e 75 6d 5c 7a 40 |lobal\@t|opnum\z@|
|00000780| 20 20 20 20 20 20 20 20 | 25 20 50 72 65 76 65 6e | |% Preven|
|00000790| 74 73 20 66 69 67 75 72 | 65 73 20 66 72 6f 6d 20 |ts figur|es from |
|000007a0| 67 6f 69 6e 67 20 61 74 | 20 74 6f 70 20 6f 66 20 |going at| top of |
|000007b0| 70 61 67 65 2e 0a 20 20 | 20 5c 40 61 66 74 65 72 |page.. | \@after|
|000007c0| 69 6e 64 65 6e 74 66 61 | 6c 73 65 20 20 20 20 20 |indentfa|lse |
|000007d0| 20 20 20 25 20 53 75 70 | 70 72 65 73 73 65 73 20 | % Sup|presses |
|000007e0| 69 6e 64 65 6e 74 20 69 | 6e 20 66 69 72 73 74 20 |indent i|n first |
|000007f0| 70 61 72 61 67 72 61 70 | 68 2e 20 20 43 68 61 6e |paragrap|h. Chan|
|00000800| 67 65 0a 20 20 20 5c 73 | 65 63 64 65 66 5c 40 63 |ge. \s|ecdef\@c|
|00000810| 68 61 70 74 65 72 5c 40 | 73 63 68 61 70 74 65 72 |hapter\@|schapter|
|00000820| 7d 20 20 20 25 20 74 6f | 20 5c 40 61 66 74 65 72 |} % to| \@after|
|00000830| 69 6e 64 65 6e 74 74 72 | 75 65 20 74 6f 20 68 61 |indenttr|ue to ha|
|00000840| 76 65 20 69 6e 64 65 6e | 74 2e 0a 25 20 53 74 79 |ve inden|t..% Sty|
|00000850| 6c 65 20 66 6f 72 20 66 | 69 72 73 74 20 70 61 67 |le for f|irst pag|
|00000860| 65 20 6f 66 20 61 20 63 | 68 61 70 74 65 72 0a 5c |e of a c|hapter.\|
|00000870| 64 65 66 5c 70 73 40 63 | 68 61 70 74 65 72 70 61 |def\ps@c|hapterpa|
|00000880| 67 65 7b 5c 6c 65 74 5c | 40 6d 6b 62 6f 74 68 5c |ge{\let\|@mkboth\|
|00000890| 6d 61 72 6b 62 6f 74 68 | 0a 5c 64 65 66 5c 40 65 |markboth|.\def\@e|
|000008a0| 76 65 6e 68 65 61 64 7b | 5c 63 68 61 70 74 65 72 |venhead{|\chapter|
|000008b0| 68 65 61 64 7d 5c 64 65 | 66 5c 40 6f 64 64 68 65 |head}\de|f\@oddhe|
|000008c0| 61 64 7b 5c 63 68 61 70 | 74 65 72 68 65 61 64 7d |ad{\chap|terhead}|
|000008d0| 0a 5c 64 65 66 5c 40 65 | 76 65 6e 66 6f 6f 74 7b |.\def\@e|venfoot{|
|000008e0| 5c 63 68 61 70 74 65 72 | 66 6f 6f 74 7d 5c 64 65 |\chapter|foot}\de|
|000008f0| 66 5c 40 6f 64 64 66 6f | 6f 74 7b 5c 63 68 61 70 |f\@oddfo|ot{\chap|
|00000900| 74 65 72 66 6f 6f 74 7d | 7d 0a 25 20 53 74 79 6c |terfoot}|}.% Styl|
|00000910| 65 20 66 6f 72 20 68 65 | 61 64 65 72 73 20 41 4e |e for he|aders AN|
|00000920| 44 20 66 6f 6f 74 65 72 | 73 2e 0a 5c 69 66 40 74 |D footer|s..\if@t|
|00000930| 77 6f 73 69 64 65 20 20 | 20 20 20 20 20 20 20 25 |woside | %|
|00000940| 20 49 66 20 74 77 6f 2d | 73 69 64 65 64 20 70 72 | If two-|sided pr|
|00000950| 69 6e 74 69 6e 67 2e 0a | 5c 64 65 66 5c 70 73 40 |inting..|\def\ps@|
|00000960| 66 6f 6f 74 65 72 73 7b | 5c 6c 65 74 5c 40 6d 6b |footers{|\let\@mk|
|00000970| 62 6f 74 68 5c 6d 61 72 | 6b 62 6f 74 68 0a 5c 64 |both\mar|kboth.\d|
|00000980| 65 66 5c 40 65 76 65 6e | 68 65 61 64 7b 5c 65 76 |ef\@even|head{\ev|
|00000990| 65 6e 68 65 61 64 6c 69 | 6e 65 7d 5c 64 65 66 5c |enheadli|ne}\def\|
|000009a0| 40 6f 64 64 68 65 61 64 | 7b 5c 6f 64 64 68 65 61 |@oddhead|{\oddhea|
|000009b0| 64 6c 69 6e 65 7d 0a 5c | 64 65 66 5c 40 65 76 65 |dline}.\|def\@eve|
|000009c0| 6e 66 6f 6f 74 7b 5c 65 | 76 65 6e 66 6f 6f 74 6c |nfoot{\e|venfootl|
|000009d0| 69 6e 65 7d 5c 64 65 66 | 5c 40 6f 64 64 66 6f 6f |ine}\def|\@oddfoo|
|000009e0| 74 7b 5c 6f 64 64 66 6f | 6f 74 6c 69 6e 65 7d 0a |t{\oddfo|otline}.|
|000009f0| 25 20 43 68 61 70 74 65 | 72 20 73 74 75 66 66 0a |% Chapte|r stuff.|
|00000a00| 5c 64 65 66 5c 63 68 61 | 70 74 65 72 6d 61 72 6b |\def\cha|ptermark|
|00000a10| 23 23 31 7b 5c 6d 61 72 | 6b 62 6f 74 68 7b 5c 75 |##1{\mar|kboth{\u|
|00000a20| 70 70 65 72 63 61 73 65 | 7b 5c 69 66 6e 75 6d 20 |ppercase|{\ifnum |
|00000a30| 5c 63 40 73 65 63 6e 75 | 6d 64 65 70 74 68 20 3e |\c@secnu|mdepth >|
|00000a40| 5c 6d 40 6e 65 0a 20 5c | 40 63 68 61 70 61 70 70 |\m@ne. \|@chapapp|
|00000a50| 5c 20 5c 74 68 65 63 68 | 61 70 74 65 72 2e 20 5c |\ \thech|apter. \|
|00000a60| 20 5c 66 69 20 23 23 31 | 7d 7d 7b 7d 7d 0a 5c 64 | \fi ##1|}}{}}.\d|
|00000a70| 65 66 5c 73 65 63 74 69 | 6f 6e 6d 61 72 6b 23 23 |ef\secti|onmark##|
|00000a80| 31 7b 5c 6d 61 72 6b 72 | 69 67 68 74 7b 5c 75 70 |1{\markr|ight{\up|
|00000a90| 70 65 72 63 61 73 65 7b | 5c 69 66 6e 75 6d 20 5c |percase{|\ifnum \|
|00000aa0| 63 40 73 65 63 6e 75 6d | 64 65 70 74 68 20 3e 5c |c@secnum|depth >\|
|00000ab0| 7a 40 0a 20 20 20 5c 74 | 68 65 73 65 63 74 69 6f |z@. \t|hesectio|
|00000ac0| 6e 2e 20 5c 20 5c 66 69 | 20 23 23 31 7d 7d 7d 0a |n. \ \fi| ##1}}}.|
|00000ad0| 7d 0a 5c 65 6c 73 65 20 | 20 20 20 20 20 20 20 20 |}.\else | |
|00000ae0| 20 20 20 20 20 20 25 20 | 49 66 20 6f 6e 65 2d 73 | % |If one-s|
|00000af0| 69 64 65 64 20 70 72 69 | 6e 74 69 6e 67 2e 0a 5c |ided pri|nting..\|
|00000b00| 64 65 66 5c 70 73 40 66 | 6f 6f 74 65 72 73 7b 5c |def\ps@f|ooters{\|
|00000b10| 6c 65 74 5c 40 6d 6b 62 | 6f 74 68 5c 6d 61 72 6b |let\@mkb|oth\mark|
|00000b20| 62 6f 74 68 0a 5c 64 65 | 66 5c 40 65 76 65 6e 68 |both.\de|f\@evenh|
|00000b30| 65 61 64 7b 5c 65 76 65 | 6e 68 65 61 64 6c 69 6e |ead{\eve|nheadlin|
|00000b40| 65 7d 5c 64 65 66 5c 40 | 6f 64 64 68 65 61 64 7b |e}\def\@|oddhead{|
|00000b50| 5c 6f 64 64 68 65 61 64 | 6c 69 6e 65 7d 0a 5c 64 |\oddhead|line}.\d|
|00000b60| 65 66 5c 40 65 76 65 6e | 66 6f 6f 74 7b 5c 65 76 |ef\@even|foot{\ev|
|00000b70| 65 6e 66 6f 6f 74 6c 69 | 6e 65 7d 5c 64 65 66 5c |enfootli|ne}\def\|
|00000b80| 40 6f 64 64 66 6f 6f 74 | 7b 5c 6f 64 64 66 6f 6f |@oddfoot|{\oddfoo|
|00000b90| 74 6c 69 6e 65 7d 0a 25 | 20 43 68 61 70 74 65 72 |tline}.%| Chapter|
|00000ba0| 20 73 74 75 66 66 0a 25 | 5c 64 65 66 5c 63 68 61 | stuff.%|\def\cha|
|00000bb0| 70 74 65 72 6d 61 72 6b | 23 23 31 7b 5c 6d 61 72 |ptermark|##1{\mar|
|00000bc0| 6b 72 69 67 68 74 7b 5c | 75 70 70 65 72 63 61 73 |kright{\|uppercas|
|00000bd0| 65 7b 5c 69 66 6e 75 6d | 20 5c 63 40 73 65 63 6e |e{\ifnum| \c@secn|
|00000be0| 75 6d 64 65 70 74 68 20 | 3e 5c 6d 40 6e 65 0a 25 |umdepth |>\m@ne.%|
|00000bf0| 20 5c 40 63 68 61 70 61 | 70 70 5c 20 5c 74 68 65 | \@chapa|pp\ \the|
|00000c00| 63 68 61 70 74 65 72 2e | 20 5c 20 5c 66 69 20 23 |chapter.| \ \fi #|
|00000c10| 23 31 7d 7d 7d 0a 5c 64 | 65 66 5c 63 68 61 70 74 |#1}}}.\d|ef\chapt|
|00000c20| 65 72 6d 61 72 6b 23 23 | 31 7b 5c 6d 61 72 6b 72 |ermark##|1{\markr|
|00000c30| 69 67 68 74 7b 5c 73 66 | 20 7b 5c 69 66 6e 75 6d |ight{\sf| {\ifnum|
|00000c40| 20 5c 63 40 73 65 63 6e | 75 6d 64 65 70 74 68 20 | \c@secn|umdepth |
|00000c50| 3e 5c 6d 40 6e 65 0a 20 | 5c 40 63 68 61 70 61 70 |>\m@ne. |\@chapap|
|00000c60| 70 5c 20 5c 74 68 65 63 | 68 61 70 74 65 72 20 3a |p\ \thec|hapter :|
|00000c70| 20 5c 20 5c 66 69 20 23 | 23 31 7d 7d 7d 0a 7d 0a | \ \fi #|#1}}}.}.|
|00000c80| 5c 66 69 0a 0a 25 20 44 | 65 62 75 67 67 69 6e 67 |\fi..% D|ebugging|
|00000c90| 20 73 74 75 66 66 2e 0a | 25 5c 6c 65 74 5c 6d 61 | stuff..|%\let\ma|
|00000ca0| 72 6b 62 6f 74 68 6f 72 | 69 67 5c 6d 61 72 6b 62 |rkbothor|ig\markb|
|00000cb0| 6f 74 68 0a 25 5c 64 65 | 66 5c 6d 61 72 6b 62 6f |oth.%\de|f\markbo|
|00000cc0| 74 68 23 31 23 32 7b 5c | 74 79 70 65 6f 75 74 7b |th#1#2{\|typeout{|
|00000cd0| 2d 2d 2d 4d 61 72 6b 62 | 6f 74 68 3a 20 5c 23 31 |---Markb|oth: \#1|
|00000ce0| 3d 23 31 2c 20 5c 23 32 | 3d 23 32 5c 6e 65 77 6c |=#1, \#2|=#2\newl|
|00000cf0| 69 6e 65 7d 0a 25 20 20 | 5c 6d 61 72 6b 62 6f 74 |ine}.% |\markbot|
|00000d00| 68 6f 72 69 67 20 7b 23 | 31 7d 20 7b 23 32 7d 7d |horig {#|1} {#2}}|
|00000d10| 0a 25 20 20 0a 25 5c 6c | 65 74 5c 6d 61 72 6b 72 |.% .%\l|et\markr|
|00000d20| 69 67 68 74 6f 72 69 67 | 5c 6d 61 72 6b 72 69 67 |ightorig|\markrig|
|00000d30| 68 74 0a 25 5c 64 65 66 | 5c 6d 61 72 6b 72 69 67 |ht.%\def|\markrig|
|00000d40| 68 74 23 31 7b 5c 74 79 | 70 65 6f 75 74 7b 2d 2d |ht#1{\ty|peout{--|
|00000d50| 2d 4d 61 72 6b 72 69 67 | 68 74 3a 20 5c 23 31 3d |-Markrig|ht: \#1=|
|00000d60| 23 31 5c 6e 65 77 6c 69 | 6e 65 7d 0a 25 20 20 5c |#1\newli|ne}.% \|
|00000d70| 6d 61 72 6b 72 69 67 68 | 74 6f 72 69 67 20 7b 23 |markrigh|torig {#|
|00000d80| 31 7d 7d 0a | |1}}. | |
+--------+-------------------------+-------------------------+--------+--------+